/*
 * Powered By xTOOLs
 * Dev by tao.li8@pactera.com
 * Copyright ©2009-2018 pactera.com All rights reserved.
 * Generated at 2020-7-20 14:00:41
 */

package com.pactera.jep.service.yapin.eval.model.model;

import com.pactera.jep.web.entity.Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Digits;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.*;
import java.math.BigDecimal;

import com.pactera.jep.commons.DateUtils;
import com.pactera.jep.entity.PO;

/**
 * 房屋估值模型与可比因素对照表实体类
 * @Author YourName
 * @Date 2020-7-20 14:00:41
 */
@ApiModel(value = "ValModelFactor" , description = "房屋估值模型与可比因素对照表")
@Entity
@Table(name = "ap_val_model_factor")
public class ValModelFactor implements PO {

    @ApiModelProperty("模型与可比因素对照关系id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Length(max = 32, message = "模型与可比因素对照关系id长度最多32位")
    @Column(name = "MODEL_FACTOR_ID")
    private String modelFactorId;

    @ApiModelProperty("")
    @Length(max = 32, message = "长度最多32位")
    @Column(name = "FACTOR_ID")
    private String factorId;

    @ApiModelProperty("")
    @Length(max = 20, message = "长度最多20位")
    @Column(name = "FACTOR_CD")
    private String factorCd;

    @ApiModelProperty("估值模型信息ID")
    @Length(max = 32, message = "估值模型信息ID长度最多32位")
    @Column(name = "MODEL_ID")
    private String modelId;

    @ApiModelProperty("估值模型编号")
    @Length(max = 40, message = "估值模型编号长度最多40位")
    @Column(name = "MODEL_NO")
    private String modelNo;

    @ApiModelProperty("权重")
    @Digits(integer = 8, fraction = 8, message = "权重不能超过16位")
    @Column(name = "WEIGHT_RT")
    private BigDecimal weightRt;

    @ApiModelProperty("系统创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "SYS_CREATE_TIME")
    private Date sysCreateTime;

    @ApiModelProperty("系统更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "SYS_UPDATE_TIME")
    private Date sysUpdateTime;

    @ApiModelProperty("")
    @Digits(integer = 8, fraction = 8, message = "不能超过16位")
    @Column(name = "STEP_VALUE")
    private BigDecimal stepValue;

    @ApiModelProperty("代码类型")
    @Length(max = 20, message = "代码类型长度最多20位")
    @Column(name = "FACTOR_TP_CD")
    private String factorTpCd;

    public String getModelFactorId(){
        return modelFactorId;
    }

    public void setModelFactorId(String modelFactorId){
        this.modelFactorId = modelFactorId;
    }
    public String getFactorId(){
        return factorId;
    }

    public void setFactorId(String factorId){
        this.factorId = factorId;
    }
    public String getFactorCd(){
        return factorCd;
    }

    public void setFactorCd(String factorCd){
        this.factorCd = factorCd;
    }
    public String getModelId(){
        return modelId;
    }

    public void setModelId(String modelId){
        this.modelId = modelId;
    }
    public String getModelNo(){
        return modelNo;
    }

    public void setModelNo(String modelNo){
        this.modelNo = modelNo;
    }
    public BigDecimal getWeightRt(){
        return weightRt;
    }

    public void setWeightRt(BigDecimal weightRt){
        this.weightRt = weightRt;
    }
    public Date getSysCreateTime(){
        return sysCreateTime;
    }

    public void setSysCreateTime(Date sysCreateTime){
        this.sysCreateTime = sysCreateTime;
    }
    public Date getSysUpdateTime(){
        return sysUpdateTime;
    }

    public void setSysUpdateTime(Date sysUpdateTime){
        this.sysUpdateTime = sysUpdateTime;
    }
    public BigDecimal getStepValue(){
        return stepValue;
    }

    public void setStepValue(BigDecimal stepValue){
        this.stepValue = stepValue;
    }
    public String getFactorTpCd(){
        return factorTpCd;
    }

    public void setFactorTpCd(String factorTpCd){
        this.factorTpCd = factorTpCd;
    }
}

